function getCurrentDatetime() {
    // 获取当前日期和时间
    const now = new Date();
 
    // 提取年、月、日、小时、分钟和秒
    const year = now.getFullYear();
    const month = String(now.getMonth() + 1).padStart(2, '0'); // 月份从0开始，需要加1
    const day = String(now.getDate()).padStart(2, '0');
    const hours = String(now.getHours()).padStart(2, '0');
    const minutes = String(now.getMinutes()).padStart(2, '0');
    const seconds = String(now.getSeconds()).padStart(2, '0');
 
    // 格式化为 YYYY-MM-DD HH:MM:SS
    const datetime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
 
    return datetime;
}
module.exports = {
	getCurrentDatetime
}